package jdk.features.jdk8;

class Person<T> {
    public void eat(T t) {
        System.out.println("吃");
        System.out.println(t);
    }
}

public class Case001
{
    public static void main(String[] args)
    {
        Person<String> p=new Person<>() {
            @Override
            public void eat(String s)
            {
                super.eat(s);
            }
        };
    }
}
